package Package.Example.Example_1;

public class Example_1 {
    public static final void Example_1() {
        Example_Demo_1 demo = new Example_Demo_1();
        demo.eat();
        useEatable(new Example_Demo_1() {
            @Override
            public void eat() {
                System.out.println("一天一苹果，医生远离我");
            }
        });
        useEat(() -> {
            System.out.println("熊猫吃竹子");
        });
    }

    private static void useEat(eat eat) {
        eat.eat();
    }

    private static void useEatable(Example_Demo_1 e) {
        e.eat();
    }


}
